<template>
    <div class="header">
      <router-link to="/">
        <span class="iconfont back">&#xe675;</span>
      </router-link>
      <span class="title">{{title}}</span>
    </div>
</template>

<script>
export default {
  name: 'CityHeader',
  props: {
    title: String
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/variables.styl'

  .header {
    position: relative;
    width: 100%;
    height: .88rem;
    text-align: center;
    line-height .88rem;
    color: #fff;
    background-color: $headerBgColor;
  }
  .header .back {
    position: absolute;
    top: 0;
    left: .2rem;
    color: #fff;
  }

  .header .title {
    color: #fff;
  }
</style>